package com.colorful.exceldemo.toolkit.excel.impl;

import com.colorful.exceldemo.toolkit.excel.ExcelDynamicSelect;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author kang junjie
 * @date 2022/6/8 11:39
 */
@Component
public class ManageDeptSelectImpl implements ExcelDynamicSelect {

    @Override
    public Map<String, List<String>> getSource() {
        return null;
    }

    @Override
    public Map<String, List<String>> getSourceMap() {
        Map<String, List<String>> map = new LinkedHashMap<>();
        List<String> list1 = new ArrayList<>();
        list1.add("1");
        list1.add("2");
        List<String> list2 = new ArrayList<>();
        list2.add("3");
        list2.add("4");
        map.put("人员级联1", list1);
        map.put("人员级联2", list2);
        return map;
    }

}
